import {defineStore} from 'pinia'

export const useMenuSessionStore = defineStore('menu-session', {
    // 持久化配置
    persist: {
        key: 'menu-session',
        storage: localStorage,
        paths: ['activeRouteKey'] // 只持久化userInfo和token字段
    },

    // 状态定义
    state: () => ({
        activeRouteKey: '0-0',
    }),

    // 计算属性
    getters: {},

    // 方法定义
    actions: {}
})